package com.ccxe.util;
/**
 *
 * @author 解析原始数据
 *
 */
public class ParserData {

	public static String[] parser(String str) {
		String[] tmp = str.split("\\s");
		if(tmp.length == 3){
			return tmp;
		}
		if(tmp.length == 4){
			return new String[] {tmp[1],tmp[2],tmp[3]};
		}
		long time = DateConvertUtil.stringToYMDHMS(null, tmp[2] + " "+ tmp[3]);
		if(tmp.length >20 && time > 1) {
			return new String[]{tmp[1],
					String.valueOf(time),
					tmp[4]};
		}
		return null;
	}
}
